home *** CD-ROM | disk | FTP | other *** search
/ Acorn RISC PD-CD 1 / Acorn RISC PD-CD 1.iso / raytracers / _pvray / pv / scenes / bumpmap < prev    next >
Encoding:
Text File  |  1991-11-03  |  1.3 KB  |  74 lines

  1. // Persistence of Vision Raytracer
  2. // Imagemap test file by Aaron a. Collins 
  3. // No, it's a bumpmap test by CdW! 
  4.  
  5.  
  6. #include "<PVray$Dir>.dat.shapes"
  7. #include "<PVray$Dir>.dat.colors"
  8. #include "<PVray$Dir>.dat.textures"
  9.  
  10. view_point
  11.    location <0.0  20.0  -120.0>
  12.    direction <0.0 0.0  1.5>
  13.    up  <0.0  1.0  0.0>
  14.    right <1.33333 0.0 0.0>
  15.    look_at <0.0 20.0 0.0>
  16. end_view_point
  17.  
  18. object
  19.    sphere <0.0  25.0  0.0>  50.0 end_sphere
  20.  
  21.    texture    
  22.      color CBlue 
  23.      bumpmap <1.0 -1.0 0.0> gif "<PVray$Dir>.gif.fract001" 
  24.      bumpsize 5.0
  25.      interpolate 2.0
  26.      end_map
  27.      scale < 30.0 30.0 30.0 >            { scaled and translated so only }
  28.      translate < 35.0 -19.0 0.0 >        { 1 instance of the map appears. }
  29.      ambient 0.2
  30.      diffuse 0.7
  31.      specular 0.6
  32.    end_texture
  33.  
  34. end_object
  35.  
  36. object
  37.    plane <0.0 1.0 0.0> -10.0 end_plane
  38.  
  39.    texture
  40.      color Gold
  41.      ambient 0.1
  42.      diffuse 0.5
  43. //    reflection 1.0    
  44.    end_texture
  45. end_object
  46.  
  47. object
  48.    sphere  <0.0  0.0  0.0> 2.0 end_sphere
  49.    translate  <100.0  120.0  -130.0>
  50.  
  51.    texture
  52.      colour White
  53.      ambient 1.0
  54.      diffuse 0.0
  55.    end_texture
  56.    light_source
  57.    colour White
  58. end_object
  59.  
  60. {
  61. object
  62.    sphere <0.0  0.0  0.0> 2.0 end_sphere
  63.    translate <-100.0  10.0  -130.0>
  64.  
  65.    texture
  66.      colour White
  67.      ambient 1.0
  68.      diffuse 0.0
  69.    end_texture
  70.    light_source
  71.    colour White
  72. end_object
  73. }
  74.